package cn.tedu._03vehicle.mapper;

import cn.tedu._03vehicle.pojo.dto.VehicleListQuery;
import cn.tedu._03vehicle.pojo.entity.Vehicle;
import cn.tedu._03vehicle.pojo.vo.VehicleListVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper
public interface VehicleMapper {
    int insert(Vehicle vehicle);

    List<VehicleListVo> listVehicle(@Param("query")VehicleListQuery vehicleListQuery,@Param("userId") Integer id);

    int delVehicle(@Param("id") Integer id, @Param("userId") Integer userId, @Param("updateTime") Date updateTime);
}
